﻿#ifndef SRCWIDGET_H
#define SRCWIDGET_H

#include <QWidget>
#include <QFileDialog>
#include <columnmapping.h>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QScrollBar>
#include <QTimer>
#include <QListWidget>


namespace Ui {
class SrcWidget;
}


class SrcWidget : public QWidget
{
    Q_OBJECT

public:
    explicit SrcWidget(QWidget *parent = nullptr);
    ~SrcWidget();
    QVector<COLUMN_MAP> getDataMapVector();
    QString getFilePath();
    void updateColumnMap();



protected slots:
    void toolButtonClicked();
    void pushButtonAddClicked();
    void pushButtonDelClicked();

private:
    Ui::SrcWidget *ui;
    QVector<COLUMN_MAP> dataVector;                 // 普通数据的数组
    QWidget* m_viewWidget;
    quint16 m_LatestSeq = 1;

};

#endif // SRCWIDGET_H
